import request from '@/utils/request'
import qs from "qs"

export function getList(params) {
  return request({
    url: "/classify/list",
    method: 'get',
    params,
    baseURL: "http://localhost:2345"
  })
}

export function setList(data) {
  return request({
    url: "/classify/addList",
    method: 'post',
    data: qs.stringify(data),
    baseURL: "http://localhost:2345"
  })
}

export function updateLists(data) {
  return request({
    url: "/classify/updateList",
    method: 'post',
    data: qs.stringify(data),
    baseURL: "http://localhost:2345"
  })
}

export function delLists(id) {
  return request({
    url: "/classify/delList",
    method: 'get',
    params: { id },
    baseURL: "http://localhost:2345"
  })
}